<%-- 
    Document   : index
    Created on : 11/05/2013, 04:57:11 AM
    Author     : YICELA
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>JSP Page</title>
        <link rel="stylesheet" href="Estilos/css/smoothness/jquery-ui-1.10.3.custom.css" />
        <link rel="stylesheet" href="Estilos/Estilos.css" />
        <script language="javascript" src="js/jquery-1.9.1.js"></script>
        <script language="javascript" src="js/jquery-ui.js"></script>
    </head>
    <body>
         <script >
   
        function validaIngreso(){
            
        var usr = document.getElementById("textfield").value;
        var psw = document.getElementById("textfield2").value;
        
        if(usr=="" || psw==""){
            alert("Ingrese usuario y/o clave!!!");
        
            return false;
        }else{
            
            document.form1.submit();
            self.location.href='Default.jsp';
            return true;
         }
        }
    </script>

        <div name="page" class="page">
            <form name="form1" method="post" action="">
                <center>
                    <h1 class="xxxmenu">Sistema de Control</h1>
                    <div style=" width: 450px; text-align: center;">
                        <table border="0" class="stlPanelBusqueda">
                            <tr>
                                <td width="30%" rowspan="3"><img src="imagenes/ingresar.jpg" width="128" ></td>
                                <td width="25%" >Usuario</td>
                                <td width="45%"><label for="textfield"></label>
                                    <input type="text" name="textfield" id="textfield"></td>
                            </tr>
                            <tr>
                                <td >Contraseña</td>
                                <td><label for="textfield2"></label>
                                    <input type="text" name="textfield2"  id="textfield2"></td>
                            </tr>
                            <tr>
                                <td >&nbsp;</td>
                                <td><input type="button" name="btn_ingresar" class="stlbutton" id="btn_ingresar" value="Ingresar" onclick="javascritp:validaIngreso"></td>
                            </tr>
                        </table>
                    </div>
                </center>
            </form>
        </div>
    </body>
</html>
